<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="feedBackDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='feedBackDetail.heading'/>"/>
</head>

<form:form commandName="feedBack" method="post" action="feedbackform.html" id="feedBackForm">
<form:errors path="*" cssClass="error" element="div"/>
<form:hidden path="id"/>
<form:hidden path="therapy.id"/>
<ul>
     <li>
        <appfuse:label styleClass="desc" key="feedBack.isGood"/>
        <form:errors path="isGood" cssClass="fieldError"/>
        <appfuse:label styleClass="desc" key="feedBack.good"/><form:radiobutton path="isGood" value="true"/>
        <appfuse:label styleClass="desc" key="feedBack.bad"/><form:radiobutton path="isGood" value="false"/>
    </li>
     <li>
        <appfuse:label styleClass="desc" key="feedBack.content"/>
        <form:errors path="content" cssClass="fieldError"/>
        <form:textarea path="content" id="content" rows="5" cols="50" />
    </li>
        
    <li class="buttonBar bottom">
        <input type="submit" class="button" name="save" value="<fmt:message key="button.save"/>"/>
        <c:if test="${not empty feedBack.id}">
        <input type="submit" class="button" name="delete" onclick="return confirmDelete('feedBack')" 
            value="<fmt:message key="button.delete"/>" />
        </c:if>
        <input type="submit" class="button" name="cancel" value="<fmt:message key="button.cancel"/>"/>
    </li>
</ul>
</form:form>

<script type="text/javascript">
    Form.focusFirstElement($('feedBackForm'));
</script>